package com.miyu.test.testPack;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class test1 {

        public static void main(String[] args) {
            int current = 11;

            //System.out.println(); Math.max(min, current) == Math.min(current, max);
            if(rangeInDefined(current, 1, 10)){
                log.info(current + "在1——10之间");
                System.out.println(current + "在1——10之间");
            }else {
                log.info(current + "不在1——10之间");
                System.out.println(current + "不在1——10之间");
            }


    }

    public static boolean rangeInDefined(int current, int min, int max) {
        return Math.max(min, current) == Math.min(current, max);
    }
}
